//
//  HMMessageTableViewController.swift
//  weibo
//
//  Created by LCH on 16/3/2.
//  Copyright © 2016年 lch. All rights reserved.
//

import UIKit

class HMMessageTableViewController: HMVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if !userLogin {
        
        visitorView.setPageInfo("visitordiscover_image_message", message: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            
         return
        
        }
      
        setupUI()
        
        
     
    
      
  }
    
    func findGroup() {
    
        print("发现群")
        let vc = HMTemp2ViewController()
        navigationController?.pushViewController(vc, animated: true)
    
    }
    
    func setupUI() {
    
        let button = UIButton()
        button.setTitle("哈哈", forState: UIControlState.Normal)
        button.backgroundColor = UIColor.redColor()
        navigationItem.titleView = button
        button.sizeToFit()
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "发现群", target: self, action: "findGroup")
    
    }
}